package com.test.Service.Impl;

import com.test.Service.UserService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @author: Lixy
 * @email: 1908598362@qq.com
 * @date: 2022/2/21 星期一 14:40
 */
public class UserServiceImpl extends UnicastRemoteObject implements UserService {

    public UserServiceImpl() throws RemoteException {
        super();
    }


    @Override
    public String getUser(String name) throws RemoteException {
        System.out.println("查询到的用户：" + name);

        return "{\"name\":\""+name+"\"}";
    }
}
